package com.shadow.ui.container.town.base
{
	import com.liseen.resource.ResourcePool;
	import com.shadow.resourceConfig.ResourceConfig;
	import com.shadow.ui.custom.CustomSprite;
	import com.shadow.ui.director.DisplayDirector;
	import com.shadow.ui.interfaces.IMemoryCleaner;
	import com.shadow.ui.map.stage.base.MapStage;
	
	import flash.display.MovieClip;
	import flash.events.Event;
	
	public class TownContainer extends CustomSprite implements IMemoryCleaner
	{
		private var _mapStage:MapStage;
		protected var focusBoundary:MovieClip;
		
		public function TownContainer()
		{
			super();
			initialize();
			addEvent();
			
		}
		/**
		 *设置map场景 
		 * @param mStage
		 * 
		 */		
		public function set mapStage(mStage:MapStage):void
		{
			_mapStage = mStage;
			DisplayDirector.getInstance().currentMapStage = _mapStage;
		}
		
		/**
		 *获取mapStage 
		 * @return 
		 * 
		 */		
		public function get mapStage():MapStage
		{
			return this._mapStage;
		}
		
		public function dealloc():void
		{
		}
		
		public function removeEvent(event:Event):void
		{
		}
		
		protected function initialize():void
		{
			var focusBoundaryDef:Class = ResourcePool.getClass(GlobalContext.RESOURCE_PATH+ResourceConfig.UI_LIB_URL,"FocusBoundary") as Class;
			focusBoundary = new focusBoundaryDef() as MovieClip;
			focusBoundary.mouseChildren=false;
			focusBoundary.mouseEnabled=false;
			
		}
		
		protected function addEvent():void
		{
			
		}
	}
}